<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MyJsp.jsp' starting page</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="wxpay/jquery-1.8.2.min.js"></script>
  </head>
  
  <body>
  <div style="text-align: center;">This is my 二维码 </div>
    <div id="imgDiv" style="text-align: center;">
    </div>
    <script type="text/javascript">
    
    var data={"platform_type":"test002","body":"商品信息","orderId":new Date().getTime(),"total_fee":"0.01"};
   /*  $.ajax({ 
    		type:"POST",
    		url:"wxpay/getCodeurl",
    		data:data,
    		dataType: "text",
    		success:function(data){
    			var src="wxpay/createQrcode?code_url="+data;
    			$("#imgDiv").append("<img id='m2' src=''/>");
    			$("#m2").attr("src",src);
    			$("#m2").css("width","300px");
    			$("#m2").css("height","300px");
    		}
    	})  */
    	var src="wxpay/createQrcode?data="+JSON.stringify(data);
			$("#imgDiv").append("<img id='m2' src=''/>");
			$("#m2").attr("src",src);
			$("#m2").css("width","300px");
			$("#m2").css("height","300px");
    	/* 
    	 $.ajax({
    		type:"GET",
    		url:"basic_platform/orderIsSuccess",
    		data:{orderId:"12001185090"},
    		dataType: "text",
    		success:function(data){
    			if(data=="SUCCESS"){
    				alert("支付成功");
    			}
    		}
    	})  */
    </script>
  </body>
</html>
